/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                        *
 * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software; you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program; if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
package org.adempiere.model;

import java.sql.*;
import java.util.*;
/**
 * 	InOut Line
 *
 *  @author Jorg Janke
 *  @version $Id: MInOutLine.java,v 1.5 2006/07/30 00:51:03 jjanke Exp $
 */
public class MLoading extends X_M_Loading
{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1435345435L;
	/**************************************************************************
	 * 	Standard Constructor
	 *	@param ctx context
	 *	@param M_LoadingLine_ID id
	 *  @param M_Loading_ID master id
	 *	@param trxName trx name
	 */
	public MLoading (Properties ctx, int M_Loading_ID, String trxName)
	{
		super (ctx, M_Loading_ID, trxName);
	}	

	/**
	 *  Load Constructor
	 *  @param ctx context
	 *  @param rs result set record
	 *  @param trxName transaction
	 */
	public MLoading (Properties ctx, ResultSet rs, String trxName)
	{
		super(ctx, rs, trxName);
	}	//	MInOutLine

	/**************************************************************************
	 * 	Before Save
	 *	@param newRecord new
	 *	@return save
	 */
	protected boolean beforeSave (boolean newRecord)
	{
		log.fine("");		
		return true;
	}	//	beforeSave
	
	/**
	 * 	Before Delete
	 *	@return true if drafted
	 */
	protected boolean beforeDelete ()
	{
		return true;
	}	//	beforeDelete

	/**
	 * 	String Representation
	 *	@return info
	 */
	public String toString ()
	{
		return "MLoading: " 
				+ getM_Loading_ID() + "-" 
				+ getDocumentno() + " [" + getLoadingDate().toString() + "]"   ;
	}	//	toString
		
	protected boolean afterSave (boolean newRecord, boolean success)
	{
		return true;
	}	//	afterSave	
    /*** 
	 *   Add overrides funciton after delete
	 */
	protected boolean afterDelete (boolean success)
	{
		return true;
	}	//	afterDelet
}	
